import Mock from 'mockjs'

const constantRoutes = [
  {
    id: Mock.Random.natural(),
    path: '/',
    title: '首页1',
    label: '首页1',
    isOutside: false,
    code: 'Dashboard',
    icon: 'dashboard',
    // affix: 'true',
    permTypes: [{ id: Mock.Random.natural(), code: 'add', title: '' }, { id: Mock.Random.natural(), code: 'edit', title: '编辑' }, { id: Mock.Random.natural(), code: 'info', title: '详情' }, { id: Mock.Random.natural(), code: 'query', title: '查询' }, { id: Mock.Random.natural(), code: 'del', title: '删除' }]
  },

  {
    id: 2,
    path: '#',
    title: '示例',
    label: '示例',
    isOutside: false,
    code: '',
    permTypes: [{ id: Mock.Random.natural(), code: 'add', title: '新增' }, { id: Mock.Random.natural(), code: 'edit', title: '编辑' }, { id: Mock.Random.natural(), code: 'info', title: '详情' }, { id: Mock.Random.natural(), code: 'query', title: '查询' }, { id: Mock.Random.natural(), code: 'del', title: '删除' }],
    children: [
      {
        id: 3,
        path: '/example/table',
        title: '表格',
        label: '表格',
        parentId: 2,
        isOutside: false,
        icon: 'table',
        // code: 'Table',
        permTypes: [{ id: Mock.Random.natural(), code: 'add', title: '新增' }, { id: Mock.Random.natural(), code: 'edit', title: '编辑' }, { id: Mock.Random.natural(), code: 'info', title: '详情' }, { id: Mock.Random.natural(), code: 'query', title: '查询' }, { id: Mock.Random.natural(), code: 'del', title: '删除' }],
        children: [
          {
            id: Mock.Random.natural(),
            path: '/nested/menu1/menu1-1',
            title: '嵌套1-1',
            parentId: 3,
            isOutside: false,
            code: 'Menu1-1',
            permTypes: [{ id: Mock.Random.natural(), code: 'add', title: '新增' }, { id: Mock.Random.natural(), code: 'edit', title: '编辑' }, { id: Mock.Random.natural(), code: 'info', title: '详情' }, { id: Mock.Random.natural(), code: 'query', title: '查询' }, { id: Mock.Random.natural(), code: 'del', title: '删除' }]
          },
          {
            id: Mock.Random.natural(),
            path: '/example/table',
            title: '表格',
            label: '表格',
            isOutside: false,
            code: 'Table',
            permTypes: [{ id: Mock.Random.natural(), code: 'add', title: '新增' }, { id: Mock.Random.natural(), code: 'edit', title: '编辑' }, { id: Mock.Random.natural(), code: 'info', title: '详情' }, { id: Mock.Random.natural(), code: 'query', title: '查询' }, { id: Mock.Random.natural(), code: 'del', title: '删除' }]
          }
        ]
      },
      {
        id: Mock.Random.natural(),
        path: '/example/tree',
        title: '树形',
        label: '树形',
        code: 'Tree',
        isOutside: false,
        icon: 'tree',
        permTypes: [{ id: Mock.Random.natural(), code: 'add', title: '新增' }, { id: Mock.Random.natural(), code: 'edit', title: '编辑' }, { id: Mock.Random.natural(), code: 'info', title: '详情' }, { id: Mock.Random.natural(), code: 'query', title: '查询' }, { id: Mock.Random.natural(), code: 'del', title: '删除' }]
      }
    ]
  },

  {
    id: Mock.Random.natural(),
    path: '/sys',
    title: '系统设置',
    label: '系统设置',
    isOutside: false,
    code: '',
    permTypes: [{ id: Mock.Random.natural(), code: 'add', title: '新增' }, { id: Mock.Random.natural(), code: 'edit', title: '编辑' }, { id: Mock.Random.natural(), code: 'info', title: '详情' }, { id: Mock.Random.natural(), code: 'query', title: '查询' }, { id: Mock.Random.natural(), code: 'del', title: '删除' }],
    children: [
      {
        id: Mock.Random.natural(),
        path: '/sys/menu',
        title: '菜单设置',
        label: '菜单设置',
        isOutside: false,
        code: 'SysMenu',
        permTypes: [{ id: Mock.Random.natural(), code: 'add', title: '添加' }, { id: Mock.Random.natural(), code: 'edit', title: '编辑' }, { id: Mock.Random.natural(), code: 'info', title: '详情' }, { id: Mock.Random.natural(), code: 'query', title: '查询' }, { code: 'del', title: '删除' }, { code: 'exp', title: '导出' }]
      }
    ]
  },

  {
    id: Mock.Random.natural(),
    path: '/form',
    title: '表单示例',
    label: '表单示例',
    isOutside: false,
    code: 'Form',
    icon: 'form',
    permTypes: [{ id: Mock.Random.natural(), code: 'add', title: '新增' }, { id: Mock.Random.natural(), code: 'edit', title: '编辑' }, { id: Mock.Random.natural(), code: 'info', title: '详情' }, { id: Mock.Random.natural(), code: 'query', title: '查询' }, { id: Mock.Random.natural(), code: 'del', title: '删除' }]
  },

  {
    id: Mock.Random.natural(),
    path: '#',
    title: '嵌套',
    isOutside: false,
    permTypes: [{ id: Mock.Random.natural(), code: 'add', title: '新增' }, { id: Mock.Random.natural(), code: 'edit', title: '编辑' }, { id: Mock.Random.natural(), code: 'info', title: '详情' }, { id: Mock.Random.natural(), code: 'query', title: '查询' }, { id: Mock.Random.natural(), code: 'del', title: '删除' }],
    children: [
      {
        id: Mock.Random.natural(),
        path: '/nested/menu1',
        title: '嵌套1',
        label: '嵌套1',
        isOutside: false,
        code: 'Menu1',
        permTypes: [{ id: Mock.Random.natural(), code: 'add', title: '新增' }, { id: Mock.Random.natural(), code: 'edit', title: '编辑' }, { id: Mock.Random.natural(), code: 'info', title: '详情' }, { id: Mock.Random.natural(), code: 'query', title: '查询' }, { id: Mock.Random.natural(), code: 'del', title: '删除' }],
        children: [
          {
            id: Mock.Random.natural(),
            path: '/nested/menu1/menu1-1',
            title: '嵌套1-1',
            label: '嵌套1-1',
            isOutside: false,
            code: 'Menu1-1'
            // permTypes: ['add', 'edit', 'info', 'query', 'delete']
          },
          {
            id: Mock.Random.natural(),
            path: '/nested/menu1/menu1-2',
            title: '嵌套1-2',
            label: '嵌套1-2',
            isOutside: false,
            code: 'Menu1-2',
            children: [
              {
                id: Mock.Random.natural(),
                path: '/nested/menu1/menu1-2/menu1-2-1',
                title: '嵌套1-2-1',
                label: '嵌套1-2-1',
                isOutside: false,
                code: 'Menu1-2-1'
              },
              {
                id: Mock.Random.natural(),
                path: '/nested/menu1/menu1-2/menu1-2-2',
                title: '嵌套1-2-2safadfasdfas',
                label: '嵌套1-2-2safadfasdfas',
                isOutside: false
              }, {
                id: Mock.Random.natural(),
                path: 'https://www.jd.com',
                title: '京东',
                label: '京东',
                isOutside: true,
                openType: '2'
              }
            ]
          },
          {
            id: Mock.Random.natural(),
            path: '/nested/menu1/menu1-3',
            title: '嵌套1-3',
            label: '嵌套1-3',
            isOutside: false
          }
        ]
      },
      {
        id: Mock.Random.natural(),
        path: '/nested/menu2',
        title: '嵌套2',
        label: '嵌套2',
        isOutside: false
      }
    ]
  },
  {
    id: Mock.Random.natural(),
    path: 'https://panjiachen.github.io/vue-element-admin-site/#/',
    title: '外链',
    label: '外链',
    isOutside: true,
    openType: '1'
  },
  {
    id: Mock.Random.natural(),
    path: 'https://panjiachen.github.io/vue-element-admin-site/',
    title: '外链2',
    label: '外链2',
    isOutside: true,
    openType: '2'
  },
  {
    id: Mock.Random.natural(),
    path: 'https://www.baidu.com/',
    title: '百度',
    label: '百度',
    isOutside: true,
    openType: '2'
  }

]

const initData = [{
  'id': '1266710091638300674',
  'title': '首页',
  'code': 'Dashboard',
  'path': '/',
  'parentId': '0',
  'icon': 'dashboard',
  'imgPath': null,
  'permission': 'dashboard',
  'menuType': 1,
  'menuAdap': 0,
  'isOutside': 0,
  'openType': 1,
  'sysCode': 'resource',
  'isEnable': 1,
  'topId': '0',
  'paixu': 0,
  'depId': null,
  'remark': null,
  'lockVersion': 0,
  'label': '首页',
  'children': [],
  'permTypes': []
},
{
  'id': '1266715857300545538',
  'title': '系统设置',
  'code': 'sys',
  'path': '/sys',
  'parentId': '0',
  'icon': 'el-icon-setting',
  'imgPath': null,
  'permission': 'sys',
  'menuType': 1,
  'menuAdap': 0,
  'isOutside': 0,
  'openType': 1,
  'sysCode': 'resource',
  'isEnable': 1,
  'topId': '0',
  'paixu': 0,
  'depId': null,
  'remark': null,
  'lockVersion': 0,
  'label': '系统设置',
  'children': [{
    'id': '1267285387294834689',
    'title': '菜单设置',
    'code': 'SysMenu',
    'path': '/sys/menu',
    'parentId': '1266715857300545538',
    'icon': 'tree-table',
    'imgPath': null,
    'permission': 'SysMenu',
    'menuType': 1,
    'menuAdap': 1,
    'isOutside': 0,
    'openType': 1,
    'sysCode': 'resource',
    'isEnable': 1,
    'topId': '0',
    'paixu': 1,
    'depId': null,
    'remark': null,
    'lockVersion': 0,
    'label': '菜单设置',
    'children': [],
    'permTypes': [{
      'id': '1267285387320000514',
      'title': '添加',
      'code': 'add'
    }, {
      'id': '1267285387328389122',
      'title': '修改',
      'code': 'edit'
    }, {
      'id': '1267285387332583425',
      'title': '删除',
      'code': 'del'
    }, {
      'id': '1267285387332583426',
      'title': '详情',
      'code': 'info'
    }, {
      'id': '1267285387340972034',
      'title': '查询',
      'code': 'query'
    }]
  }, {
    'id': '1272355417699160065',
    'title': '组织管理',
    'code': 'SysDep',
    'path': '/sys/dep',
    'parentId': '1266715857300545538',
    'icon': 'tree',
    'imgPath': null,
    'permission': 'SysDep',
    'menuType': 1,
    'menuAdap': 1,
    'isOutside': 0,
    'openType': 1,
    'sysCode': null,
    'isEnable': 1,
    'topId': null,
    'paixu': 1,
    'depId': null,
    'remark': null,
    'lockVersion': 0,
    'label': '组织管理',
    'children': [],
    'permTypes': [{
      'id': '1272355417741103106',
      'title': '添加',
      'code': 'add'
    }, {
      'id': '1272355417757880321',
      'title': '删除',
      'code': 'del'
    }, {
      'id': '1272355417762074626',
      'title': '详情',
      'code': 'info'
    }, {
      'id': '1272355417766268930',
      'title': '查询',
      'code': 'query'
    }, {
      'id': '1272355417770463234',
      'title': '导出',
      'code': 'exp'
    }, {
      'id': '1277177087534329857',
      'title': '编辑',
      'code': 'edit'
    }]
  }, {
    'id': '1272440148235161602',
    'title': '角色管理',
    'code': 'SysRole',
    'path': '/sys/role',
    'parentId': '1266715857300545538',
    'icon': 'peoples',
    'imgPath': null,
    'permission': 'SysRole',
    'menuType': 1,
    'menuAdap': 1,
    'isOutside': 0,
    'openType': 1,
    'sysCode': null,
    'isEnable': 1,
    'topId': null,
    'paixu': 1,
    'depId': null,
    'remark': null,
    'lockVersion': 0,
    'label': '角色管理',
    'children': [],
    'permTypes': [{
      'id': '1272440148251938817',
      'title': '添加',
      'code': 'add'
    }, {
      'id': '1272440148256133123',
      'title': '删除',
      'code': 'del'
    }, {
      'id': '1272440148260327425',
      'title': '详情',
      'code': 'info'
    }, {
      'id': '1272440148319047682',
      'title': '查询',
      'code': 'query'
    }, {
      'id': '1272440148319047683',
      'title': '导出',
      'code': 'exp'
    }, {
      'id': '1277177137647874049',
      'title': '编辑',
      'code': 'edit'
    }]
  }, {
    'id': '1273857052640280578',
    'title': '字典管理',
    'code': 'SysDict',
    'path': '/sys/dict',
    'parentId': '1266715857300545538',
    'icon': 'tree',
    'imgPath': null,
    'permission': 'SysDict',
    'menuType': 1,
    'menuAdap': 1,
    'isOutside': 0,
    'openType': 1,
    'sysCode': null,
    'isEnable': 1,
    'topId': null,
    'paixu': 1,
    'depId': null,
    'remark': null,
    'lockVersion': 0,
    'label': '字典管理',
    'children': [],
    'permTypes': [{
      'id': '1273857052732555266',
      'title': '添加',
      'code': 'add'
    }, {
      'id': '1273857052740943874',
      'title': '编辑',
      'code': 'edit'
    }, {
      'id': '1273857052749332482',
      'title': '删除',
      'code': 'del'
    }, {
      'id': '1273857052753526786',
      'title': '详情',
      'code': 'info'
    }, {
      'id': '1273857052757721089',
      'title': '查询',
      'code': 'query'
    }, {
      'id': '1273857052761915393',
      'title': '导出',
      'code': 'exp'
    }]
  }],
  'permTypes': []
}
]
const common = { 'code': '200', 'msg': '操作成功', 'data': [] }
const list1 = { 'code': '200', 'msg': '操作成功', 'data': [{ 'id': '1266710091638300674', 'createUserName': null, 'createTime': '2020-06-15 10:26:27', 'updateUserName': null, 'updateTime': '2020-06-15 10:26:27', 'title': '首页', 'code': 'Dashboard', 'path': '/', 'parentId': '0', 'icon': 'dashboard', 'imgPath': null, 'permission': 'dashboard', 'menuType': 1, 'menuAdap': 0, 'isOutside': 0, 'openType': 1, 'sysCode': 'resource', 'isEnable': 1, 'topId': '0', 'paixu': 0, 'depId': null, 'remark': null, 'lockVersion': 0 }, { 'id': '1266715857300545538', 'createUserName': null, 'createTime': '2020-06-15 10:26:27', 'updateUserName': null, 'updateTime': '2020-06-15 10:26:27', 'title': '系统设置', 'code': 'sys', 'path': '/sys', 'parentId': '0', 'icon': 'el-icon-setting', 'imgPath': null, 'permission': 'sys', 'menuType': 1, 'menuAdap': 0, 'isOutside': 0, 'openType': 1, 'sysCode': 'resource', 'isEnable': 1, 'topId': '0', 'paixu': 0, 'depId': null, 'remark': null, 'lockVersion': 0 }], 'errorDebugMsg': null }
const list2 = { 'code': '200', 'msg': '操作成功', 'data': [{ 'id': '1267285387294834689', 'createUserName': null, 'createTime': '2020-06-15 10:26:27', 'updateUserName': null, 'updateTime': '2020-06-16 13:36:42', 'title': '菜单设置', 'code': 'SysMenu', 'path': '/sys/menu', 'parentId': '1266715857300545538', 'icon': 'tree-table', 'imgPath': null, 'permission': 'SysMenu', 'menuType': 1, 'menuAdap': 1, 'isOutside': 0, 'openType': 1, 'sysCode': 'resource', 'isEnable': 1, 'topId': '0', 'paixu': 1, 'depId': null, 'remark': null, 'lockVersion': 0 }, { 'id': '1272355417699160065', 'createUserName': null, 'createTime': '2020-06-15 10:29:05', 'updateUserName': null, 'updateTime': '2020-06-26 21:34:12', 'title': '组织管理', 'code': 'SysDep', 'path': '/sys/dep', 'parentId': '1266715857300545538', 'icon': 'tree', 'imgPath': null, 'permission': 'SysDep', 'menuType': 1, 'menuAdap': 1, 'isOutside': 0, 'openType': 1, 'sysCode': null, 'isEnable': 1, 'topId': null, 'paixu': 1, 'depId': null, 'remark': null, 'lockVersion': 0 }, { 'id': '1272440148235161602', 'createUserName': null, 'createTime': '2020-06-15 16:05:46', 'updateUserName': null, 'updateTime': '2020-06-16 18:52:56', 'title': '角色管理', 'code': 'SysRole', 'path': '/sys/role', 'parentId': '1266715857300545538', 'icon': 'peoples', 'imgPath': null, 'permission': 'SysRole', 'menuType': 1, 'menuAdap': 1, 'isOutside': 0, 'openType': 1, 'sysCode': null, 'isEnable': 1, 'topId': null, 'paixu': 1, 'depId': null, 'remark': null, 'lockVersion': 0 }, { 'id': '1273857052640280578', 'createUserName': null, 'createTime': '2020-06-19 13:56:03', 'updateUserName': null, 'updateTime': '2020-06-19 14:35:52', 'title': '字典管理', 'code': 'SysDict', 'path': '/sys/dict', 'parentId': '1266715857300545538', 'icon': 'tree', 'imgPath': null, 'permission': 'SysDict', 'menuType': 1, 'menuAdap': 1, 'isOutside': 0, 'openType': 1, 'sysCode': null, 'isEnable': 1, 'topId': null, 'paixu': 1, 'depId': null, 'remark': null, 'lockVersion': 0 }], 'errorDebugMsg': null }
const list3 = { 'code': '200', 'msg': '操作成功', 'data': [{ 'id': '1267285387320000514', 'createUserName': null, 'createTime': '2020-06-15 10:26:27', 'updateUserName': null, 'updateTime': '2020-06-15 10:26:27', 'title': '添加', 'code': 'add', 'path': null, 'parentId': '1267285387294834689', 'icon': null, 'imgPath': null, 'permission': 'SysMenu:add', 'menuType': 4, 'menuAdap': 1, 'isOutside': 0, 'openType': 1, 'sysCode': null, 'isEnable': 1, 'topId': null, 'paixu': 0, 'depId': null, 'remark': null, 'lockVersion': 0 }, { 'id': '1267285387328389122', 'createUserName': null, 'createTime': '2020-06-15 10:26:27', 'updateUserName': null, 'updateTime': '2020-06-15 10:26:27', 'title': '修改', 'code': 'edit', 'path': null, 'parentId': '1267285387294834689', 'icon': null, 'imgPath': null, 'permission': 'SysMenu:edit', 'menuType': 4, 'menuAdap': 1, 'isOutside': 0, 'openType': 1, 'sysCode': null, 'isEnable': 1, 'topId': null, 'paixu': 0, 'depId': null, 'remark': null, 'lockVersion': 0 }, { 'id': '1267285387332583425', 'createUserName': null, 'createTime': '2020-06-15 10:26:27', 'updateUserName': null, 'updateTime': '2020-06-15 10:26:27', 'title': '删除', 'code': 'del', 'path': null, 'parentId': '1267285387294834689', 'icon': null, 'imgPath': null, 'permission': 'SysMenu:del', 'menuType': 4, 'menuAdap': 1, 'isOutside': 0, 'openType': 1, 'sysCode': null, 'isEnable': 1, 'topId': null, 'paixu': 0, 'depId': null, 'remark': null, 'lockVersion': 0 }, { 'id': '1267285387332583426', 'createUserName': null, 'createTime': '2020-06-15 10:26:27', 'updateUserName': null, 'updateTime': '2020-06-15 10:26:27', 'title': '详情', 'code': 'info', 'path': null, 'parentId': '1267285387294834689', 'icon': null, 'imgPath': null, 'permission': 'SysMenu:info', 'menuType': 4, 'menuAdap': 1, 'isOutside': 0, 'openType': 1, 'sysCode': null, 'isEnable': 1, 'topId': null, 'paixu': 0, 'depId': null, 'remark': null, 'lockVersion': 0 }, { 'id': '1267285387340972034', 'createUserName': null, 'createTime': '2020-06-15 10:26:27', 'updateUserName': null, 'updateTime': '2020-06-15 10:26:27', 'title': '查询', 'code': 'query', 'path': null, 'parentId': '1267285387294834689', 'icon': null, 'imgPath': null, 'permission': 'SysMenu:query', 'menuType': 4, 'menuAdap': 1, 'isOutside': 0, 'openType': 1, 'sysCode': null, 'isEnable': 1, 'topId': null, 'paixu': 0, 'depId': null, 'remark': null, 'lockVersion': 0 }], 'errorDebugMsg': null }
const tree = { 'code': '200', 'msg': '操作成功', 'data': [{ 'id': '1266710091638300674', 'createUserName': null, 'createTime': '2020-06-15 10:26:27', 'updateUserName': null, 'updateTime': '2020-06-15 10:26:27', 'title': '首页', 'code': 'Dashboard', 'path': '/', 'parentId': '0', 'icon': 'dashboard', 'imgPath': null, 'permission': 'dashboard', 'menuType': 1, 'menuAdap': 0, 'isOutside': 0, 'openType': 1, 'sysCode': 'resource', 'isEnable': 1, 'topId': '0', 'paixu': 0, 'depId': null, 'remark': null, 'lockVersion': 0, 'label': '首页', 'children': [], 'permTypes': [] }, { 'id': '1266715857300545538', 'createUserName': null, 'createTime': '2020-06-15 10:26:27', 'updateUserName': null, 'updateTime': '2020-06-15 10:26:27', 'title': '系统设置', 'code': 'sys', 'path': '/sys', 'parentId': '0', 'icon': 'el-icon-setting', 'imgPath': null, 'permission': 'sys', 'menuType': 1, 'menuAdap': 0, 'isOutside': 0, 'openType': 1, 'sysCode': 'resource', 'isEnable': 1, 'topId': '0', 'paixu': 0, 'depId': null, 'remark': null, 'lockVersion': 0, 'label': '系统设置', 'children': [{ 'id': '1267285387294834689', 'createUserName': null, 'createTime': '2020-06-15 10:26:27', 'updateUserName': null, 'updateTime': '2020-06-16 13:36:42', 'title': '菜单设置', 'code': 'SysMenu', 'path': '/sys/menu', 'parentId': '1266715857300545538', 'icon': 'tree-table', 'imgPath': null, 'permission': 'SysMenu', 'menuType': 1, 'menuAdap': 1, 'isOutside': 0, 'openType': 1, 'sysCode': 'resource', 'isEnable': 1, 'topId': '0', 'paixu': 1, 'depId': null, 'remark': null, 'lockVersion': 0, 'label': '菜单设置', 'children': [], 'permTypes': [] }, { 'id': '1272355417699160065', 'createUserName': null, 'createTime': '2020-06-15 10:29:05', 'updateUserName': null, 'updateTime': '2020-06-26 21:34:12', 'title': '组织管理', 'code': 'SysDep', 'path': '/sys/dep', 'parentId': '1266715857300545538', 'icon': 'tree', 'imgPath': null, 'permission': 'SysDep', 'menuType': 1, 'menuAdap': 1, 'isOutside': 0, 'openType': 1, 'sysCode': null, 'isEnable': 1, 'topId': null, 'paixu': 1, 'depId': null, 'remark': null, 'lockVersion': 0, 'label': '组织管理', 'children': [], 'permTypes': [] }, { 'id': '1272440148235161602', 'createUserName': null, 'createTime': '2020-06-15 16:05:46', 'updateUserName': null, 'updateTime': '2020-06-16 18:52:56', 'title': '角色管理', 'code': 'SysRole', 'path': '/sys/role', 'parentId': '1266715857300545538', 'icon': 'peoples', 'imgPath': null, 'permission': 'SysRole', 'menuType': 1, 'menuAdap': 1, 'isOutside': 0, 'openType': 1, 'sysCode': null, 'isEnable': 1, 'topId': null, 'paixu': 1, 'depId': null, 'remark': null, 'lockVersion': 0, 'label': '角色管理', 'children': [], 'permTypes': [] }, { 'id': '1273857052640280578', 'createUserName': null, 'createTime': '2020-06-19 13:56:03', 'updateUserName': null, 'updateTime': '2020-06-19 14:35:52', 'title': '字典管理', 'code': 'SysDict', 'path': '/sys/dict', 'parentId': '1266715857300545538', 'icon': 'tree', 'imgPath': null, 'permission': 'SysDict', 'menuType': 1, 'menuAdap': 1, 'isOutside': 0, 'openType': 1, 'sysCode': null, 'isEnable': 1, 'topId': null, 'paixu': 1, 'depId': null, 'remark': null, 'lockVersion': 0, 'label': '字典管理', 'children': [], 'permTypes': [] }], 'permTypes': [] }], 'errorDebugMsg': null }
export default [
  {
    url: '/sys/sys-menu/init',
    type: 'get',
    response: config => {
      return {
        code: 200,
        msg: 'success',
        data: initData
      }
    }
  },
  {
    url: '/sys/sys-menu/list',
    type: 'get',
    response: config => {
      console.log(config.query)
      if (config.query.parentId === '0' && config.query.menuType === '3') {
        return list1
      } else if (config.query.parentId === '1266715857300545538' && config.query.menuType === '3') {
        return list2
      } else if (config.query.menuType === '4') {
        return list3
      }
      return common
    }
  },
  {
    url: '/sys/sys-menu/tree',
    type: 'get',
    response: config => {
      return tree
    }
  }
]
